import Vue from "vue"
import App from "./App.vue"

//引入VueRouter
import VueRouter from "vue-router"
//引入路由器
import router from "./router"

// 引入ElementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

// 引入我的字体
import "@/assets/fonts/myFonts.css";

// 引入通用样式
import "@/assets/css/common.css"

// 引入蚂蚁金服UI框架
// import Antd from "ant-design-vue";
// import "ant-design-vue/dist/antd.css";

// 引入axios
// import axios from "axios";

// 引入封装后的axios
import api from "./request/api"

Vue.config.productionTip = false

//应用插件
Vue.use(VueRouter);
Vue.use(ElementUI);
// Vue.use(Antd);

// Vue.prototype.$axios = axios
Vue.prototype.$api = api

new Vue({
  render: h => h(App),
  router:router,
  beforeCreate() {
    // 部署全局事件总线
    Vue.prototype.$bus = this;
  }
}).$mount("#webapp")
